<?php
namespace app\admin\validate;
use think\Validate;
class Servicer extends Validate{
    protected $rule = [
        'nickname'  =>  'require',
        'wechat' =>  'require',
        'phone' => 'require',
        'qq' => 'require',
        'qrcode'   => 'require',
    ];
    protected $message = [
        'nickname.require'  =>  NICKNAME_CONNT_EMPTY,
        'wechat.require' =>  WECHAT_CONNET_EMPTY,
        'phone.require' =>PHONE_CANNOT_EMPTY,
        'qq.require' =>QQ_CONNOT_EMPTY,
        'qrcode.require' =>QRCODE_CONNET_EMPTY,
    ];
}